<extend name="Layout/ins_page" />
<block name="content">
	{:W('PageHeader/simple',array('name'=>'新建库存类别','search'=>'N'))}
	<form method='post' id="form_data" name="form_data" enctype="multipart/form-data"   class="well form-horizontal">
		<div class="form-group col-sm-6">
			<label class="col-sm-4 control-label" for="bank" >库存类别：</label>
			<div class="col-sm-8">
				<input  class="form-control" type="text" id="type_name" name="type_name" check="require" msg="请输入库存类别名称"/>
			</div>
		</div>
		<div class="form-group col-sm-6">
			<label class="col-sm-4 control-label" for="bank" >分类：</label>
			<div class="col-sm-8">
				<select id="storehouse_product_id" name="flag" class="form-control" check="require"  msg="请输入分类">
					<option value="">请选择</option>
					<foreach name="flag" item="vo">
						<option value="{$key}">{$vo}</option>
					</foreach>
				</select>
			</div>
		</div>
		<div class="form-group">
			<div class="action col-sm-10 col-sm-offset-2">
				<input class="btn btn-sm btn-primary" type="button" value="保存" onclick="save();" />
				<input class="btn btn-sm btn-default" type="button" value="取消" onClick="javascript:history.go(-1);" />
			</div>
		</div>
	</form>
</block>
<block name="js">
	<script>
		function save() {
			sendForm("form_data", "{:U('addProductTypePost')}");
		}
	</script>
</block>